#ifndef TCP_SERVER_H
#define TCP_SERVER_H

#include "tcp_client.h"
#include <cstdint>
#include <cstring>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <unistd.h>

namespace OHOS {
namespace DistributedHardware {
class TcpServer{
public:
    TcpServer();
    ~TcpServer();

    int TcpServerSocket(const uint16_t port);
    bool Accept(TcpClient* session);
private:
    int listenSock_;
};
}
}
#endif
